package com.github.wisdom.admin.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.wisdom.admin.entity.AddressEntity;
import com.github.wisdom.admin.mapper.AddressDao;
import com.github.wisdom.admin.service.AddressService;
import com.github.wisdom.common.github.modules.util.EntityWrapperHandle;
import com.github.wisdom.common.github.modules.util.PageUtils;
import com.github.wisdom.common.github.modules.util.Query;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("addressService")
public class AddressServiceImpl extends ServiceImpl<AddressDao, AddressEntity> implements AddressService<AddressEntity> {

    @Override
    public PageUtils<AddressEntity> queryPage(Map<String, Object> params) {
    	EntityWrapperHandle<AddressEntity> ew = new EntityWrapperHandle<AddressEntity>(params);
		Page<AddressEntity> page = this.selectPage(new Query<AddressEntity>(params).getPage(),ew);
		return new PageUtils<AddressEntity>(page);
    }
    @Override
    public List<AddressEntity> queryPageByLike(Map<String, Object> params) {
    	return baseMapper.queryPageByLike(params);
    }
    

}
